package com.xuecheng.manage_media.service;

import com.xuecheng.framework.domain.media.response.CheckChunkResult;
import com.xuecheng.framework.model.response.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author Kidy
 * @date 2020/7/10 21:04
 */
public interface MediaUploadService {

    public ResponseResult register(String fileMd5, String fileName, Long fileSize, String mimetype, String fileExt);

    public CheckChunkResult checkChunk(String fileMd5, Integer chunk, Integer chunkSize);

    public ResponseResult uploadChunk(String fileMd5, Integer chunk, MultipartFile file);

    public ResponseResult mergeChunks(String fileMd5, String fileName, Long fileSize, String mimetype, String fileExt);

}
